<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php echo @$css.@$js;?>		
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>	
<script type="text/javascript"> 
$(function() { 
$("img").lazyload({ 
effect : "fadeIn" 
}); 
}); 
</script> 
<body>
<div id="addOrder" class="win_div" style="display:block;">
<div class="win_title">选择相关文章<a href="javscript:;" onclick="parent.closeWin();" class="frame_close">[关闭] </a></div>
<div class="win_con"  style="background: #fff">
	<table width="100%">
 
	 <tr>
	<?php 
	 
	foreach ($arr as $k=>$v):
	 
	if ($k%5==0 and $k!=0){
	    echo '<tr>';
	} 
	?>
	 <td>
	<img src="<?php echo MVC_WWW_HOST.$v?>" style="width:100px;height:70px;padding:4px;border:solid 1px #eee;" title="<?php echo getFileName($v);?>"/>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="设 置" onclick="finishSet('<?php echo $v;?>')"/>
	</td>
	<?php 
	if ($k%5==4){
	    echo '</tr>';
	}
	endforeach;
	?>
	 </tr>
	</table>
	
</div>
 
</div>

<input type="hidden" id="relationid" style="width:500px;">
</body>
<script language="Javascript">

function finishSet(path){
	parent.setThumbImg( path,'<?php echo Http::get('thumbid');?>');
	parent.closeWin();
}


</script>
</html>
